<?php

class m130630_165815_update_users_code extends CDbMigration
{
	public function up()
	{
		$this->execute('UPDATE users SET code = floor(rand() * 100000000);');
		return true;
	}

	public function down()
	{
		echo "m130630_165815_update_users_code does not support migration down.\n";
		return false;
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}